<?php
$name = $_GET[ 'name' ];
$page= $_GET[ 'page' ];
$per_page = $_GET[ 'per_page' ];

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 
    "http://api.popong.com/v0.1/person/search?q=$name&api_key=test&page=$page&per_page=$per_page"
);
$content = curl_exec($ch);
echo $content;
?>
